package com.xin.usermanagebackend.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户昵称
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     * 登录帐号
     */
    @TableField(value = "user_account")
    private String userAccount;

    /**
     * 头像url
     */
    @TableField(value = "avatar_url")
    private String avatarUrl;

    /**
     * 性别
     */
    @TableField(value = "user_gender")
    private Integer userGender;

    /**
     * 登录密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 联系电话
     */
    @TableField(value = "user_phone")
    private String userPhone;

    /**
     * 邮箱
     */
    @TableField(value = "user_email")
    private String userEmail;

    /**
     * 用户状态，0-正常
     */
    @TableField(value = "user_status")
    private Integer userStatus;

    /**
     * 用户角色，user-普通 admin—管理员
     */
    @TableField(value = "user_role")
    private String userRole;

    /**
     * 星球编号
     */
    @TableField(value = "planet_code")
    private String planetCode;

    /**
     * 标签 json 列表
     */
    @TableField(value = "tags")
    private String tags;

    /**
     * 用户创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 用户更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 用户删除时间,0-未删除
     */
    @TableField(value = "is_Delete")
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}